package cn.qfei.qiyuesuo.service.feishu;

import java.io.File;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

public interface FeishuImService {
    public Map<String, Object> selectContractById(String contractId, String appId, String appSecret);


    Map<String, Object> getFsProcessInstances(String processInstanceId, String fsAppId, String fsAppSecret) ;

    int sendCardMessageToPeople(String fsAppId, String fsAppSecret, String receiveId, String msgType, String content, String receiveType);

    String uploadContractFile(String contractId, String appId, String appSecret, String fileType, File file, String fileName);
     String uploadApprovalFile(String contractId, String appId, String appSecret, String fileType, File file, String fileName);

    int updateContract(String contractId, String appId, String appSecret, List<String> attachmentIds);

    int updateInstanceAssignee(String processInstanceId, String fsAppId, String fsAppSecret, String taskInstanceId, String assigneeIds);
    public Map<String, Object> selectInstanceById(String instanceId,String appId, String appSecret);
    int tasksApprov(String approvalCode,String instanceCode,String userId,String taskId,String fsFileId, String appId,String appSecret, String form);

    byte[] downloadFile(String fileId, String appId, String appSecret);
}
